<?php
$file = "unix_abc2";
$sockfd = socket_create(AF_UNIX,SOCK_DGRAM,0);
socket_bind($sockfd,$file);
while (1){
   $len = socket_recvfrom($sockfd,$buf,1024,0,$unixClientFile);
   if ($len){
        fprintf(STDOUT,"recv data:%s,file=%s\n",$buf,$unixClientFile);
        socket_sendto($sockfd,$buf,strlen($buf),0,$unixClientFile);
   }
   if (strncasecmp(trim($buf),"quit",4)==0){
       break;
   }
}